  
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="admin" />
        <title>Create ContactData</title>         
    </head>
    <body>
		<div id="center-column">
			<div class="top-bar">
				<h1>Create ContactData</h1>
				<div class="breadcrumbs">
					<a class="home" href="${resource(dir:'')}">Home</a> / 
					<g:link class="list" action="list">ContactData List</g:link>
				</div>
			</div><br />
			<div class="select-bar-border-no"></div>
	        <div class="body">
	            <g:form action="save" method="post" >
					<input type="hidden" id='User' name='User.id' value="${user?.id?.encodeAsHTML()}"/>	                
					<div class="dialog">
						<div class="subdialog">						
		                    <p class='value ${hasErrors(bean:contactData,field:'User','errors')}'>
		                    	<label for='User'>User:</label>
		                    	<span id='User'>${user}</span>
		                    </p>
		                    <p class='value ${hasErrors(bean:contactData,field:'type','errors')}'>
		                    	<label for='type'>Type:</label>
		                    	<g:select id="type " name="type" from="${['email','fax','phone']}" value="${contactData?.type?.encodeAsHTML()}"/>
		                    </p>
		                    <p class='value ${hasErrors(bean:contactData,field:'data','errors')}'>
		                    	<label for='data'>Data:</label>
		                    	<input type="text" id='data' name='data' value="${contactData?.data?.encodeAsHTML()}"/>
		                    </p>
		                </div>
		            </div>
	                <div class="buttons">
	                    <span class="button"><input class="save" type="submit" value="Create"></input></span>
	                </div>
	            </g:form>
	        </div>
        </div>
		<div id="right-column">
            <g:if test="${flash.message}">
				<strong class="h">INFO</strong>
	            <div class="box">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${group}">
				<strong class="h">ERROR</strong>
                <g:renderErrors bean="${group}" as="list" />
            </g:hasErrors>
		</div>
    </body>
</html>
